package com.billing.service;

import java.util.List;





import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.Comment;
import com.billing.model.entity.CommentAppBean;
import com.billing.model.entity.Consultation;
import com.billing.model.entity.ConsultationAppBean;

/**
 * @author Administrator
 *
 */
public interface ConsultationService {

	/**
	 * @param consultingtitle
	 * @param art
	 * @param organizationid
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	public List<Consultation> getConsultationlist(String consultingtitle,
			String art, int organizationid, int currentPage, int pageSize);

	/**
	 * 根据登录用户ID获取对应的信息
	 * @param name
	 * @return
	 */
	//public Map<String, Object> selConsultationId(String userid,int pageSize,int currentPage);
	public Map<String, Object> selConsultationId(int pageSize,int currentPage);
	
	/**
	 * 评论接口
	 * @param consid
	 * @param pageSize
	 * @param currentPage
	 * @return
	 */
	public Map<String, Object> selcommentId(String consid,int pageSize,int currentPage);
	
	/**
	 * @param title
	 * @param cont
	 * @param organizationid
	 * @return
	 */
	public int selectConsuNum(String consultingtitle, String art,
			int organizationid);
	
	/**
	 * @param name
	 * @return
	 */
	public Comment CommentById(int id,int consid);
	
	/**
	 * 根据登录用户ID获取对应的单个详细信息
	 * @param name
	 * @return
	 */
	//public Consultation selConsId(String id,String userid);
	public Consultation selConsId(String id);

	/**
	 * 根据ID获取信息
	 * @param name
	 * @return
	 */
	public Consultation selectConsubyId(@Param("id") String id);
	
	/**
	 * 新增咨询信息
	 * 
	 * @param shift
	 * @return
	 */
	public int insertCons(Consultation consultation);
	
	/**
	 * 新增评论信息
	 * 
	 * @param shift
	 * @return
	 */
	public int insertComment(Comment comment);
	
	/**
	 * 修改咨询信息
	 * 
	 * @param attendance
	 * @return
	 */
	public int updateCons(Consultation consultation);
	
	public int updatereadtype(Consultation consultation);
	/**
	 * 删除咨询信息
	 * 
	 * @param coding
	 * @return
	 */
	public int deleteConsByid(int id);
	
	public int insertpath(Consultation consultation);
}
